@model BlogPost
@{
    ViewData["Title"] = Model.Title;
}

<div class="row">
    <div class="col-md-12">
        <article class="blog-post">
            <h1>@Model.Title</h1>
            <div class="text-muted mb-3">
                <span>Author: @Model.Author</span> |
                <span>Date: @Model.CreatedAt.ToString("yyyy-MM-dd")</span> |
                <span>Views: @Model.ViewCount</span>
            </div>
            
            <div class="blog-content">
                @Html.Raw(Model.Content)
            </div>
            
            <div class="mt-4">
                <a asp-controller="Blog" asp-action="Index" class="btn btn-secondary">Back to List</a>
                <a asp-controller="Admin" asp-action="EditPost" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
            </div>
        </article>
    </div>
</div>